package net.uhuijia.sys.syssetting.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import net.uhuijia.appbase.controller.BaseController;
import net.uhuijia.sys.syssetting.persistence.model.SysSetting;
import net.uhuijia.sys.syssetting.persistence.model.SysSettingExample;
import net.uhuijia.sys.syssetting.service.SysSettingService;


@RestController
@RequestMapping(value="/sysSetting")
public class SysSettingController
     extends BaseController<SysSettingService,SysSetting,SysSettingExample> {
    @Autowired
    private SysSettingService sysSettingService;
    
    @RequestMapping(value = "/getValueByKey")
   	public String getValueByKey( String key )
   	{
       	String value = sysSettingService.getValueByKey(key);
       	return value;
   	}
    
    @RequestMapping(value = "/setValueByKey")
   	public String setValueByKey( String key,String value )
   	{
        return sysSettingService.setValueByKey(key,value);
   	}
}